package com.enjoyor.soa.traffic.core.efoms.mapper.impl;

import com.enjoyor.soa.traffic.core.efoms.constant.RepairsRecordInfoSqlId;
import com.enjoyor.soa.traffic.core.efoms.domain.RepairsRecordInfo;
import com.enjoyor.soa.traffic.core.efoms.mapper.IRepairsRecordInfoMapper;
import com.enjoyor.soa.traffic.frame.support.mybatis.mapper.impl.BaseMapper;
import com.enjoyor.soa.traffic.util.pojo.Page;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class RepairsRecordInfoMapper extends BaseMapper<RepairsRecordInfo> implements IRepairsRecordInfoMapper{

	@Override
	public Page selectRepairsRecodeInfoPage(Page page) {
		// TODO Auto-generated method stub
		return this.selectPageInfo(getSqlName(RepairsRecordInfoSqlId.SQL_SELECT_ALL), page);
	}

	@Override
	public List<RepairsRecordInfo> selectRepairsRecodeInfoList(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return sqlSessionTemplate.selectList(getSqlName(RepairsRecordInfoSqlId.SQL_SELECT_LIST), map);
	}

}
